package hn.cch.action;

import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 表单提交
 */
@ParentPackage("struts-default")
@Namespace("/form")
@Component
public class AjaxAction extends ActionSupport {

    private Logger logger = LoggerFactory.getLogger(AjaxAction.class);



    @Action(value = "jquery", results = {
            @Result(name = "index", location = "/index.jsp")
    })
    public String jquery(){
        logger.info("form jquery");





        return "index";
    }


}
